using Newtonsoft.Json;
using SqlSugar;
using FytSoa.Common;
using FytSoa.Common.Extensions;
using FytSoa.Common.Utils;

namespace FytSoa.Domain
{
    public class Entity
    {
        protected Entity()
        {
            Id = Unique.Id();
        }
        
        /// <summary>
        /// 唯一编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        [JsonConverter(typeof(ConverterExtension), ConverterExtensionShip.UInt64)]
        public long Id { get; set; }
    }
}